Skip to content

Wk2 Exersice#2

Open
ivanmaker wants to merge 9 commits intomasterfrom
ivanmaker-Wk2
Open

Wk2 Exersice#2
ivanmaker wants to merge 9 commits intomasterfrom
ivanmaker-Wk2

Conversation

@ivanmaker
Copy link
Owner

Sorry fro the lateness of this homework submission

@ivanmaker ivanmaker changed the title Wk2 Exersice Commit Wk2 Exersice Sep 26, 2018
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't include this file.


public class BasicStockService implements StockService {
@Override
public StockQuote getQuote(String symbol) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment your code.

public class StockQuoteApplication {
public static void main(String[] args) throws ParseException {
StockServiceFactory SSF = new StockServiceFactory();
Scanner input = new Scanner(System.in);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use whole word variables but the stockservice should only have static methods and a private constructor so that client code can't create instances of them.

System.out.println("View stocks starting at what date? ");
startDate = input.nextLine();
Date fromDate = sdf.parse(startDate);
Calendar startCalendar = Calendar.getInstance();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

improper indentation.

import java.util.List;

public class StockServiceFactory extends BasicStockService{
public StockServiceFactory getStockService(String symbol, Calendar fromDate, Calendar toDate){
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this method should return a StockService not a StockServiceFactory

@smarks
Copy link

smarks commented Sep 30, 2018

Hi,

No circle ci tests...

Let's definitely find a time to chat.
I also think it would help if you watched the chat recordings.
Most the issues with your code I talk about in the chats.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants